Skip to main content

Get Referral Program List

GET :http://<base_url>/digipay/v3/reward_promotion/referral_program

This api is used to assign bulk/internal products to the threshold of the agent and create a threshold detail

QUERY PARAMS:-

ParameterTypeDescriptionValue
user_idStringinteger value showing the user_type where user_type can be customer,agent and merchant2

HEADERS:-

ParameterTypeDescriptionValue
AuthorizationStringIt is a combination of type and token to authenticate user for the given tokenToken duik7309njdlkhdauhknksadhjkas986876sd873j
CompanyIDStringCompany_id is a unique primary id, that is represent company detail76bc712200ca444fa334f9e55e5fd7a8

Request Body:-

Request Example
curl --request GET \
--url http://192.168.1.102:8014/digipay/v3/notification/notification \
--header 'Authorization: Token duik7309njdlkhdauhknksadhjkas986876sd873j' \
--header 'CompanyID: 7753ad6bd8cf48f5b1312fd21eb36588' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '
{
"user_id": "1dc947afefad4fea82a9c798eec4507e."
}
'

Response:-

Response 200(OK)

{
"success": 1,
"error": [],
"data": {
"notification": [
{
"id": "5eeed854720d4730bff8b30a3fb5ed5e",
"user_id": "1",
"is_read": 1,
"notification_title": "Title",
"notification_body": "Body",
"notification_type": 12,
"notification_event_type": 1,
"created_date": 1658686686,
"updated_date": 1658686686
}
]
}
}
Response 400(BAD REQUEST)
{
"success": 0,
"error"": [1],
"data": {
"message": "BAD_REQUEST",
}
}

RESPONSES :-

Status CodeDescription
200OK
400BAD REQUEST
404NOT FOUND
500INTERNAL SERVER ERROR